package com.mengdie.shuidi.model;

import com.google.gson.annotations.SerializedName;

/**
 * 作者：HQY on 2019/4/11 15:08
 * 邮箱：hqy_xz@126.com
 */
public class DiscountEntity {


    private boolean isSelect;
    /**
     * id : 14333
     * coupon_num : ARQ3b7d5BGlW
     * expire_time : 1557890363
     * create_time : 1555298363
     * status : 1
     * money : 20.00
     * name : 20元优惠劵
     */

    private int id;
    @SerializedName("coupon_num")
    private String couponNum;
    private int status;
    private String money;
    private String name;
    private String des;

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCouponNum() {
        return couponNum == null ? "" : couponNum;
    }

    public void setCouponNum(String couponNum) {
        this.couponNum = couponNum;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMoney() {
        if (money.contains(".")) {
            money = money.substring(0, money.indexOf("."));
        }
        return money == null ? "" : money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des == null ? "" : des;
    }

    public void setDes(String des) {
        this.des = des;
    }
}
